package torpedo_server.messages;

import java.io.Serializable;

public class EndMessage extends Message implements Serializable {

    private String mess;

    public EndMessage(String mess) {
        String start = "ENDSTART-";
        String end = "-ENDEND";
        this.mess = start + mess + end;
    }

    public String getMessage() {
        return this.mess;
    }

    @Override
    public String getType() {
        return ("EndMessage");
    }
}